
import { postAction, getAction, deleteAction } from '@/util/request'

export function login(data) {
  return postAction('/sys/user/login', data)
}

export function getInfo(data) {
  return getAction('/sys/user/getUserInfo', { token: data })
}

export function logout(data) {
  return postAction('/sys/user/logout', { token: data })
}

export function findList(data) {
  return postAction('/sys/user/findList', data)
}

export function addOrUpdate(data) {
  return postAction('/sys/user/addOrUpdate', data)
}

export function findSysUserById(data) {
  return getAction('/sys/user/findSysUserById', data)
}

export function deleteSysUserById(data) {
  return deleteAction('/sys/user/deleteSysUserById', data)
}

